import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
// https://vitejs.dev/config/
export default defineConfig({
	plugins: [vue()],
	resolve: {
		// 设置文件./src路径为 @
		alias: {
			'@': resolve(__dirname, '.', './src/') // 路径别名
		},
		extensions: ['.js', '.vue', '.json', '.ts'] // 使用路径别名时想要省略的后缀名，可以自己增减
	},

	optimizeDeps: {
		include: ['@/../lib/vuedraggable/dist/vuedraggable.umd.js']
	},
	server: {
		hmr: { overlay: false },
		host: '0.0.0.0',
		port: 8801,
		open: true
	}
})
